/**
 *
 */
package org.suren.littlebird.actions.bundle;

import org.eclipse.jface.action.Action;
import org.eclipse.jface.preference.PreferenceDialog;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.dialogs.PreferencesUtil;

/**
 * @author suren
 *
 */
public class SuRenBundlePreferenceAction extends Action
{
	private Shell shell;

	public SuRenBundlePreferenceAction(Shell shell)
	{
		this.shell = shell;
	}

	@Override
	public String getText()
	{
		return "Preferences";
	}

	@Override
	public void run()
	{
		PreferenceDialog dig = PreferencesUtil.createPreferenceDialogOn(shell,
				"org.suren.littlebird.preferences.SuRenPreferencePage",
				new String[]{"org.suren.littlebird.preferences.SuRenPreferencePage"},
				null);

		dig.open();
	}
}
